#33 new
Mark Lenard

Invalid INTERVAL value leads to infinite loop.

Reported by Mark Lenard | August 17th, 2010 @ 09:26 PM

Hi Rick,

I use ri-cal to parse through many ical feeds and I came across this particular event which causes ri-cal to get into an infinite loop for some reason and eventually will lead to Segmentation Fault. I think this is because RRULE has it's INTERVAL set to 0 since when I change it to 1 it works. I know 0 is not a valid value for INTERVAL since it is not a positive integer and therefore is wrong. I noticed that RiCal::PropertyValue::RecurrenceRule correctly returns 1 for interval if it does not exists. However, I think this should be modified to account for instances when INTERVAL is 0 as well and change it one.

BEGIN:VEVENT
UID:some_uid
SUMMARY:Test Event
DTSTAMP;TZID=America/Denver;VALUE=DATE-TIME:20100816T224517
DTSTART;TZID=America/Denver;VALUE=DATE-TIME:20110209T190000
DTEND;TZID=America/Denver;VALUE=DATE-TIME:20110209T190000
RRULE:FREQ=DAILY;INTERVAL=0;UNTIL=20110211T070000Z;WKST=SU
URL;VALUE=URI:http://testing.ri-cal.com
LOCATION:Some Location
DESCRIPTION:Some Description
END:VEVENT

Thank you for the wonderful library.

Mark

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A new icalendar data (RFC 2445) gem for Ruby which supports time zones and enumeration of occurrences

Shared Ticket Bins

People watching this ticket

Pages